package com.zhang.passer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 图片实体类对象
 */
@TableName("t_images")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ImageDo implements Serializable {

    //主键自增
    @TableId(type = IdType.AUTO)
    private Integer sid;
    private String src;
    private String href;
    private String title;
    private String type;
    /** 排序字段 */
    private Integer sort;

    /** 图片外键 */
    private Integer jid;
    private Integer mid;
    private Integer yid;
    private Integer hid;
}
